<?php 

$labels= $_SESSION['sharing']->getRestrictedLabels();
		foreach ($labels as $label) {
		$_SESSION['sharing']->allowLabel($label['id']);
		
	}
	if (!empty($_POST['labels'])){
		foreach ($_POST['labels'] as $label)
		$_SESSION['sharing']->maskLabel($label);
		}
	
	
?>